//
//  SafetyNoticeViewController.m
//  meiyaya
//
//  Created by 张领瑞 on 2017/9/7.
//  Copyright © 2017年 ShiFeiEr. All rights reserved.
//

#import "SafetyNoticeViewController.h"
#import "PrefixHeader.pch"
@interface SafetyNoticeViewController ()<UIWebViewDelegate>
@property (strong, nonatomic) UIWebView *webView;

@end

@implementation SafetyNoticeViewController
-(UIWebView *)webView{
    if (_webView == nil) {
        _webView = [[UIWebView alloc] initWithFrame:self.view.frame];
    }
    return _webView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.webView.delegate = self;
    [self.view addSubview:self.webView];
    
  
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:SAFETY_NOTICE_URL]];
    [self.webView loadRequest:request];

    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
